﻿using GdNet.WebFramework.Domain.System;

namespace GdNet.WebFramework.Domain.ContentManagement
{
    public partial class ContentPart : EntityHistory
    {
        public virtual string Name
        {
            get;
            set;
        }

        public virtual string Details
        {
            get;
            set;
        }

        public virtual int Position
        {
            get;
            protected set;
        }

        public virtual ContentItem ContentItem
        {
            get;
            protected set;
        }

        public virtual void ChangeRoot(ContentItem contentItem)
        {
            if (this.ContentItem == null)
            {
                this.ContentItem = contentItem;
            }
        }

        protected internal ContentPart()
        {
        }
    }
}
